<template>
<div>
<table class="table table-bordered table-striped">
  <thead>
    <tr>
     <slot name="thead"></slot>
    </tr>
  </thead>
  <tbody>
    <tr v-for="(value,index) in list" :key='value.id'>
     <slot name='tbody' :item='value' :index='index'></slot>
    </tr>
    
  </tbody>
</table>
</div>

</template>

<script>
// import { log } from 'node:console'
// import {taksURL} from '../../../apis/taks.js'
export default {
props:{
    list:{
        type:Array,
        required:true
    }
},
// mounted () {
//     setInterval((data)=>{
//         console.log(data);
//         })
// }
}
</script>
<style lang='less' scoped>

</style>
